package com.kx.springmybatis;

import com.kx.springmybatis.dao.impl.UserDaoImpl;
import com.kx.springmybatis.pojo.User;

/**
 * @ClassName UserServiceImpl
 * @Author Sun
 * @Date 2021/5/17 18:41
 */
public class UserServiceImpl implements UserService {
//    private UserDao userDao = new UserDaoImpl();
    private UserDao userDao;

    @Override
    public void addUser(User user) {
        userDao.insertUser(user);
    }

    public void setUserDao(UserDaoImpl userDao) {
        this.userDao = userDao;
    }
}
